<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>响应式布局案例</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        body{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }
        div{
            background: #6de70a;
            height: 200px;
            margin-top: 10px;
        }
        @media screen and (min-width: 768px) {
            .one{
                width: 49%;
            }
            .two{
                width: 24%;
            }
        }
        @media screen and (max-width: 768px) {
            .one{
                width: 100%;
            }
            .two{
                width: 49%;
            }
        }
        @media screen and (min-width: 1024px) {
            .other{
                width: 23%;
            }
        }
        @media screen and (min-width: 768px) and (max-width: 1024px){
            .other{
                width: 31%;
            }
        }
        @media screen and (min-width: 450px) and (max-width: 768px){
            .other{
                width: 48%;
            }
        }
        @media screen and (max-width: 450px) {
            .other{
                width: 95%;
            }
        }
    </style>
</head>
<body>
    <div class="one">one</div>
    <div class="two">two</div>
    <div class="two">two</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
    <div class="other">other</div>
</body>
</html>